@import 'normalize.css/normalize.css'; // A modern alternative to CSS resets
@import './variables.scss';
@import './element-ui.scss';
@import './mixin.scss';
@import './transition.scss';
@import './layout.scss';
@import './theme.scss';
@import './font-awesome.scss';

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
  box-sizing: border-box;
}

html, body, #app {
  width: 100%;
  height: 100%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

div:focus{
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: $primary;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

//main-container全局样式
.app-main{
  min-height: 100%
}

.bg-white {
  background-color: #FFF;
}

@each $direction in left right center {
  .text-#{$direction} {
    text-align: $direction;
  }
}

.table-panel {
  background-color: #FFF;
  border-top: 1px solid $color-border-light;
  border-bottom: 1px solid $color-border-light;
  margin: 20px 0;
  padding: 0 20px 20px 20px;
}

.search-pannel {
  width: 100%;
  height: 100px;
  padding: 0 20px;
  background-color: #fcfcfc;
  border-bottom: 1px solid #e5e5e5
}

.line-sep {
  margin: 15px 0;
  border: 0;
  border-top: 1px dashed #eee;
}

// margin variants
@each $size in 0 1 2 3 4 5 6 7 8 9 10 {
  .m-#{$size*5} {
    margin: $size*5px;
  }

  @each $side in (l, left) (r, right) (t, top) (b, bottom) {
    .m-#{nth($side,1)}-#{$size*5} {
      margin-#{nth($side,2)}: $size*5px;
    }
  }
}

@each $size in 0 1 2 3 4 5 6 7 8 9 10 {
  .m-x-#{$size*5} {
    margin-left: $size*5px;
    margin-right: $size*5px;
  }
  .m-y-#{$size*5} {
    margin-top: $size*5px;
    margin-bottom: $size*5px;
  }
}


// padding variants
@each $size in 0 1 2 3 4 5 6 7 8 9 10 {
  .p-#{$size*5} {
    padding: $size*5px;
  }

  @each $side in (l, left) (r, right) (t, top) (b, bottom) {
    .p-#{nth($side,1)}-#{$size*5} {
      padding-#{nth($side,2)}: $size*5px;
    }
  }
}

@each $size in 0 1 2 3 4 5 6 7 8 9 10 {
  .p-x-#{$size*5} {
    padding-left: $size*5px;
    padding-right: $size*5px;
  }
  .p-y-#{$size*5} {
    padding-top: $size*5px;
    padding-bottom: $size*5px;
  }
}

// border
@each $side in (a, '') (l, '-left') (r, '-right') (t, '-top') (b, '-bottom') {
  .b-#{nth($side,1)} {
    border#{nth($side,2)}: 1px solid $color-border-light;
  }
}

.b-x {
  border-left: 1px solid $color-border-light;
  border-right: 1px solid $color-border-light;
}

.b-y {
  border-top: 1px solid $color-border-light;
  border-bottom: 1px solid $color-border-light;
}